<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			function _ajax(method = "get", url = "http://jianshe.bluej.cn/api/index/get_carousel", call_back = function(data) {
				console.log(data)
			}) {
				var xhr = new XMLHttpRequest();
				xhr.open(method, url);
				xhr.send();
				xhr.addEventListener("readystatechange", function() {
					if (xhr.readyState == 4 && xhr.status == 200) {
						call_back(JSON.parse(xhr.responseText));
					}
				})
			}

			_ajax("get","http://jianshe.bluej.cn/api/index/get_carousel?position_id=3",function(data){
				console.log(data);
			})
			_ajax("get","https://student.bluej.cn/index/index/info1",function(data){
				console.log(data);
			})
			_ajax("GET","http://student.bluej.cn/index/index/lucky_draw1",function(data){
				console.log(data);
			})
		</script>
	</body>
</html>
